package cn.edu.sgu.www.mhxysy.entity.exp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 等级经验
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("grade_exp")
public class GradeExp implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 经验值
     * 角色经验：65级经验 = (64级经验 × 2 + 100) - 63级经验
     * 宠物经验：65级经验 = (64级经验 × 2 + 40) - 63级经验
     */
    @ApiModelProperty(value = "经验值")
    private Long exp;

    /**
     * 等级
     */
    @ApiModelProperty(value = "等级")
    private Integer grade;

    /**
     * 经验类型ID
     */
    @ApiModelProperty(value = "经验类型ID")
    private Integer categoryId;
}